﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Mes.Pendant.MaterialManagementService.Dto;
using Mes.Pendant.ProductionWorkOrders;
using Mes.Pendant.ProductionWorkOrderService.Dto;
using Volo.Abp.Application.Services;

namespace Mes.Pendant.ProductionWorkOrderService
{
    public interface IProductionWorkOrderService:IApplicationService
    {
        /// <summary>
        /// 添加生产工单信息
        /// </summary>
        /// <param name="insertProductdto"></param>
        /// <returns></returns>
          Task<int> AddProducorders(InsertProductdto insertProductdto);
        /// <summary>
        /// 获取生产工单数据
        /// </summary>
        /// <param name="workOrderCode"></param>
        /// <param name="workOrderName"></param>
        /// <param name="index"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<PagedResult> GetProductdatas(string? workOrderCode, string? workOrderName, int index = 1, int limit = 10);
        /// <summary>
        /// 获取物料数据
        /// </summary>
        /// <returns></returns>
          Task<List<InsertMaterialMangementdto>> GetMaterials();
        /// <summary>
        /// 根据物料编号查询数据
        /// </summary>
        /// <param name="materialCode"></param>
        /// <returns></returns>
          Task<InsertMaterialMangementdto> GetMaterialMangement(string materialCode);
    }
}
